package com.ywgt.functioninterface;

import java.util.function.Function;

public class FunctionTest {
    public static void main(String[] args) {
        Function<String, String> function = new Function<String, String>() {
            @Override
            public String apply(String str) {
                return str;
            }
        };

        //Function<String, String> function=str->{return str.toUpperCase();};
        System.out.println(function.apply("avc"));

    }
}
